home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: Greatest Hits 1996 / Amiga Games: Greatest Hits 1996.iso / archive / userbox / publicdomain / afilofaxpro23.lha / AFiloFaxPro23 / Installer-Skript < prev    next >
Text File  |  1996-06-08  |  5KB  |  170 lines

  1. (set lib "libs/reqtools.library")
  2. (set tf "gadgets/textfield.gadget")
  3.  
  4. (if (= "deutsch" @language)
  5. (
  6.     (set #welcome "\nDieses Skript installiert AFiloFaxPro und alle dazugehörigen Dateien auf Ihrer Festplatte. \n\nAFiloFaxPro © 1995-96 by Frank Weber.")
  7.     (set #destprompt "Bitte Zielverzeichnis wählen.\n(Ein Verzeichnis 'AFiloFaxPro' wird dort erstellt.)")
  8.     (set #desthelp "Sie müssen hier das Verzeichnis wählen,\nin dem die 'AFiloFaxPro'-Schublade erstellt werden soll.\n\n In diese Schublade werden dann|AFiloFaxPro und alle dazugehörigen Dateien\nkopiert.")
  9.     (set #overwritemsg "\nAFiloFaxPro wurde bereits in dieses Verzeichnis installiert.\n\nAltes AFiloFaxPro-Verzeichnis löschen ???")
  10.     (set #overwritehelp "\nIn dem Verzeichnis, das Sie ausgewählt haben, existiert bereits ein Verzeichnis mit dem Namen 'AFiloFaxPro'.\n\nAntworten Sie 'Ja', wenn Sie das alte Verzeichnis komplett löschen möchten, bevor diese Version installiert wird.")
  11.     (set #copyafc "Wohin soll das Hintergrundprogramm AFiloCron kopiert werden?")
  12.     (set #copyafchelp "AFiloCron ist das Hintergrundprogramm, das ständig über evtl. auftretende Termine wacht und auch die Statistikdateien erstellt.\n\nEs sollte immer aktiv sein, darum sollten Sie es im WBStartup-Verzeichnis installieren.")
  13.     (set #copyreqtools "\nReqtools.library kopieren...")
  14.     (set #copytf "\ntextfield.gadget kopieren...")
  15. )
  16. (
  17.     (set #welcome "\nThis script will install AFiloFaxPro and all supported files onto your Harddisk.\n\nAFiloFaxPro © 1995-96 by Frank Weber.")
  18.     (set #destprompt "Please choose destination path.\n(A drawer called 'AFiloFaxPro' will be created there.)")
  19.     (set #desthelp "Here you have to choose where the\n'AFiloFaxPro' drawer should be created.\n\nAFiloFaxPro and all supported files will\nbe copied into the 'AFiloFaxPro' directory.")
  20.     (set #overwritemsg "\nAFiloFaxPro has already been installed into this directory.\n\nDelete old directory ???")
  21.     (set #overwritehelp "\nThere is already a directory called 'AFiloFaxPro' in the directory chosen by you.\n\nSelect yes if you want the whole directory to be deleted before this version is installed.")
  22.     (set #copyafc "Where is the AFiloCron to be installed?")
  23.     (set #copyafchelp "AFiloCron is the background task waiting for events to occur.\n\nIs it should always be running, so you should place it in your 'WBStartup' drawer.")
  24.     (set #copyreqtools "\nInstalling reqtools.library")
  25.     (set #copytf "\nInstalling textfield.gadget")
  26. ))
  27. (set @nohelp " ")
  28.  
  29. (message #welcome)
  30.  
  31. (set default-dir "SYS:")
  32. (set @default-dest "SYS:")
  33.  
  34. (set @dest (askdir (prompt #destprompt)
  35.                    (help #desthelp)
  36.                    (default @default-dest)
  37.            )
  38. )
  39.  
  40. (set @affdrawer (tackon @dest "AFiloFaxPro"))
  41. (set @default-dest @dest)
  42.  
  43. (if (exists @affdrawer)
  44. (
  45.   (if (> @user-level 1)
  46.   (
  47.     (set overwrite (askbool
  48.                            (prompt #overwritemsg)
  49.                            (help #overwritehelp)
  50.                            (default 0)
  51.                    )
  52.     )
  53.     (if (= 1 overwrite)
  54.       (run (cat "c:delete QUIET ALL " @affdrawer))
  55.     )
  56.   ))
  57. ))
  58.  
  59. (makedir @affdrawer(infos))
  60.  
  61. (copyfiles  (source "AFiloFax")
  62.             (dest @affdrawer)
  63.             (infos)
  64. )
  65.  
  66. (copyfiles  (source "Anleitung.guide")
  67.             (dest @affdrawer)
  68.             (infos)
  69. )
  70.  
  71.  
  72. (copyfiles  (source "Readme")
  73.             (dest @affdrawer)
  74.             (infos)
  75. )
  76.  
  77. (copyfiles  (source "Liesmich")
  78.             (dest @affdrawer)
  79.             (infos)
  80. )
  81.  
  82. (copyfiles  (source "RegiTool")
  83.             (dest @affdrawer)
  84.             (infos)
  85. )
  86.  
  87. (makedir (tackon @affdrawer "pics"))
  88.  
  89. (copyfiles (source "pics/")
  90.            (dest (tackon @affdrawer "pics"))
  91.            (pattern "#?")
  92. )
  93.  
  94. (set @afcdest (askdir (prompt #copyafc)
  95.                      (help #copyafchelp)
  96.                      (default "SYS:WBStartup")
  97.              )
  98. )
  99.  
  100. (copyfiles  (source "AFiloCron")
  101.             (dest @afcdest)
  102.             (infos)
  103. )
  104.  
  105.  
  106. (copylib    (prompt #copyreqtools)
  107.             (help @nohelp)
  108.             (source lib)
  109.             (dest "LIBS:")
  110.             (confirm)
  111. )
  112.  
  113. (copylib    (prompt #copytf)
  114.             (help @nohelp)
  115.             (source tf)
  116.             (dest "LIBS:gadgets")
  117.             (confirm)
  118. )
  119.  
  120. (tooltype (dest (tackon @affdrawer "AFiloFax"))
  121.           (settooltype "REGITOOL" (tackon @affdrawer "RegiTool"))
  122. )
  123.  
  124. (tooltype (dest (tackon @afcdest "AFiloCron"))
  125.           (settooltype "REGITOOL" (tackon @affdrawer "RegiTool"))
  126. )
  127.  
  128. (tooltype (dest (tackon @affdrawer "AFiloFax"))
  129.           (settooltype "DOC" (tackon @affdrawer "Anleitung.guide"))
  130. )
  131.  
  132. (tooltype (dest (tackon @afcdest "AFiloCron"))
  133.           (settooltype "DOC" (tackon @affdrawer "Anleitung.guide"))
  134. )
  135.  
  136. (tooltype (dest (tackon @afcdest "AFiloCron"))
  137.           (settooltype "AFILOFAX" (tackon @affdrawer "AFiloFax"))
  138. )
  139.  
  140. (if (< (/ (getversion) 65536) 38)
  141.     (tooltype (dest (tackon @affdrawer "Anleitung.guide"))
  142.               (setdefaulttool "sys:utilities/AmigaGuide")
  143.     )
  144.  
  145.     (tooltype (dest (tackon @affdrawer "Anleitung.guide"))
  146.               (setdefaulttool "sys:utilities/Multiview")
  147.     )
  148.  
  149. )
  150.  
  151. (if (not (exists "s:aff_data"))
  152.   (makedir "s:aff_data")
  153. )
  154.  
  155. (if (exists "AFF.key")
  156.     (copyfiles (source "AFF.key")
  157.                (dest "S:")
  158.     )
  159.  
  160.     (tooltype (dest (tackon @affdrawer "AFiloFax"))
  161.               (settooltype "KEYFILE" "S:AFF.key")
  162.     )
  163.     (tooltype (dest (tackon @afcdest "AFiloCron"))
  164.               (settooltype "KEYFILE" "S:AFF.key")
  165.     )
  166.  
  167.  
  168. )
  169.  
  170.